package com.student.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * AuditionNotice entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "Audition_Notice", schema = "dbo", catalog = "StudentManager")
public class AuditionNotice implements java.io.Serializable {

	// Fields

	private Long auditionNoticeId;
	private GraduateInfo graduateInfo;
	private EmployCompany employCompany;
	private String auditionAddress;
	private Timestamp auditionTime;

	// Constructors

	/** default constructor */
	public AuditionNotice() {
	}

	/** minimal constructor */
	public AuditionNotice(Long auditionNoticeId, String auditionAddress,
			Timestamp auditionTime) {
		this.auditionNoticeId = auditionNoticeId;
		this.auditionAddress = auditionAddress;
		this.auditionTime = auditionTime;
	}

	/** full constructor */
	public AuditionNotice(Long auditionNoticeId, GraduateInfo graduateInfo,
			EmployCompany employCompany, String auditionAddress,
			Timestamp auditionTime) {
		this.auditionNoticeId = auditionNoticeId;
		this.graduateInfo = graduateInfo;
		this.employCompany = employCompany;
		this.auditionAddress = auditionAddress;
		this.auditionTime = auditionTime;
	}

	// Property accessors
	@Id
	@Column(name = "Audition_Notice_id", unique = true, nullable = false, precision = 18, scale = 0)
	@GeneratedValue
	public Long getAuditionNoticeId() {
		return this.auditionNoticeId;
	}

	public void setAuditionNoticeId(Long auditionNoticeId) {
		this.auditionNoticeId = auditionNoticeId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "Graduate_id")
	public GraduateInfo getGraduateInfo() {
		return this.graduateInfo;
	}

	public void setGraduateInfo(GraduateInfo graduateInfo) {
		this.graduateInfo = graduateInfo;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "Company_id")
	public EmployCompany getEmployCompany() {
		return this.employCompany;
	}

	public void setEmployCompany(EmployCompany employCompany) {
		this.employCompany = employCompany;
	}

	@Column(name = "Audition_Address", nullable = false, length = 256)
	public String getAuditionAddress() {
		return this.auditionAddress;
	}

	public void setAuditionAddress(String auditionAddress) {
		this.auditionAddress = auditionAddress;
	}

	@Column(name = "Audition_Time", nullable = false, length = 23)
	public Timestamp getAuditionTime() {
		return this.auditionTime;
	}

	public void setAuditionTime(Timestamp auditionTime) {
		this.auditionTime = auditionTime;
	}

}